/*
 * Copyright© 2003-2019 浙江汇信科技有限公司, All Rights Reserved. 
 */
package com.icinfo.cloud.provider.punish.controller;

import com.icinfo.cloud.provider.punish.api.client.PunishCaseFeignClient;
import com.icinfo.cloud.provider.punish.config.dto.ConfigDictionaryInfoQueryDto;
import com.icinfo.cloud.provider.punish.config.dto.RelationWorkflowInfoRequest;
import com.icinfo.cloud.provider.punish.config.vo.ConfigDictionaryInfoVo;
import com.icinfo.cloud.provider.punish.service.IConfigDictionaryInfoService;
import com.icinfo.framework.common.web.Result;
import com.icinfo.framework.core.web.BaseController;
import lombok.extern.slf4j.Slf4j;
import org.springframework.validation.annotation.Validated;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestBody;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

import javax.annotation.Resource;
import java.util.List;

/**
 * 【掌上办案V1.1】  描述: 数据字典配置表 config_dictionary_info 对应的Controller类.<br>
 *
 * @author framework generator
 * @date 2022年02月15日
 */
@RestController
@RequestMapping("/app/dictionary")
@Slf4j
public class ConfigDictionaryInfoController extends BaseController {

    @Resource
    private IConfigDictionaryInfoService configDictionaryInfoService;

    /**
     * 查询指定数据字典列表信息
     *
     * @author: zhengqiang
     * @date: 2022/6/15
     * @param: configDictionaryInfoQueryDto
     * @return {@link Result< List< ConfigDictionaryInfoVo>>}
     **/
    @PostMapping(value = "/getConfigDictionaryList")
    public Result<List<ConfigDictionaryInfoVo>> getConfigDictionaryList(@RequestBody @Validated ConfigDictionaryInfoQueryDto configDictionaryInfoQueryDto) {
        return configDictionaryInfoService.getConfigDictionaryList(configDictionaryInfoQueryDto);
        //return punishCaseFeignClient.getConfigDictionaryList(configDictionaryInfoQueryDto);
    }

}